package com.qfedu.clue.service.impl;

import com.qfedu.clue.entity.Clue;
import com.qfedu.clue.mapper.ClueMapper;
import com.qfedu.clue.service.IClueService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 线索 服务实现类
 * </p>
 *
 * @author zhangsan
 * @since 2023-03-02
 */
@Service
public class ClueServiceImpl extends ServiceImpl<ClueMapper, Clue> implements IClueService {



    @Autowired
    ClueMapper clueMapper;
    @Override
    public List<Clue> getClueList() {
        List<Clue> clues = clueMapper.getClueList();

        for (Clue clue : clues) {
            System.out.println(clue);

        }
        return  clues;
    }
}
